# coding: utf-8
import os


# 是否为dev环境
DEVELOPMENT: bool = False
if DEVELOPMENT:
    from config.dev import *
else:
    from config.prod import *

BASE_DIR: str = os.path.abspath(os.path.dirname(__file__))

# pickdb path
PICKLEDB_PATH: str = os.path.join(BASE_DIR, "dougongApiDbData.db")
# data path
DATA_PATH: str = os.path.join(BASE_DIR, "data")
# logs path
LOG_PATH: str = os.path.join(BASE_DIR, "logs")
if not os.path.exists(LOG_PATH):
    os.mkdir(LOG_PATH)
# pytest.ini default path
INI_PATH: str = os.path.join(BASE_DIR, r"pytest.ini")
# allure generate path
REPORT_DIR: str = os.path.join(BASE_DIR, r"reports")
if not os.path.exists(REPORT_DIR):
    os.mkdir(REPORT_DIR)
